package cn.lili.controller.feign;

import cn.lili.modules.share.client.ShareRegisterClient;
import cn.lili.modules.share.service.AppUserService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequiredArgsConstructor
public class ShareFeignController implements ShareRegisterClient {
    private final AppUserService appUserService;

    /**
     * 更新用户首次购买标识
     *
     * @param openid
     */
    @Override
    public int updateAppUserIsTureByOpenId(String openid) {
        return appUserService.updateAppUserIsTureByOpenId(openid);
    }
}
